-- GENERATED SPELL FOR [Fairbanks] --


function spell0_20348(pUnit, Event) --@Heal,n/a--
pUnit:FullCastSpellOnTarget(35162,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20348', 597, 1)
end

function spell1_20348(pUnit, Event) --@Smite,n/a--
pUnit:FullCastSpellOnTarget(35155,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20348', 586, 1)
end

function Sorts_20348(pUnit, Event)
local choix_sorts_20348 = math.random(0, 1)
if choix_sorts_20348 == 0 then
pUnit:RegisterEvent('spell0_20348', 1, 1)
end
if choix_sorts_20348 == 1 then
pUnit:RegisterEvent('spell1_20348', 1, 1)
end
end

function mob20348_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20348', math.random(1500, 3000), 1)
end

function mob20348_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20348_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20348_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20348, 1, 'mob20348_Action')
RegisterUnitEvent(20348, 2, 'mob20348_Leave')
RegisterUnitEvent(20348, 3, 'mob20348_Kill')
RegisterUnitEvent(20348, 4, 'mob20348_Die')
